<div class="form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'persona-form',
	'enableAjaxValidation' => true,
));
?>

	<p class="note">
		<?php echo Yii::t('app', 'Los campos con ('); ?> <span class="required">*</span> <?php echo Yii::t('app', ') son requeridos.'); ?>.
	</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<?php echo $form->labelEx($model,'Nombre'); ?>
		<?php echo $form->textField($model, 'Nombre', array('maxlength' => 60)); ?>
		<?php echo $form->error($model,'Nombre'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'Apellido'); ?>
		<?php echo $form->textField($model, 'Apellido', array('maxlength' => 60)); ?>
		<?php echo $form->error($model,'Apellido'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'DNI'); ?>
		<?php echo $form->textField($model, 'DNI'); ?>
		<?php echo $form->error($model,'DNI'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'FechaNacimiento'); ?>
		<?php $form->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model' => $model,
			'attribute' => 'FechaNacimiento',
			'value' => $model->FechaNacimiento,
			'options' => array(
				'showButtonPanel' => true,
				'changeYear' => true,
				'dateFormat' => 'yy-mm-dd',
				),
			));
; ?>
		<?php echo $form->error($model,'FechaNacimiento'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'ProvinciaId'); ?>
		<?php echo $form->dropDownList($model, 'ProvinciaId', GxHtml::listDataEx(Provincia::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'ProvinciaId'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'CiudadId'); ?>
		<?php echo $form->dropDownList($model, 'CiudadId', GxHtml::listDataEx(Ciudad::model()->findAllAttributes(null, true))); ?>
		<?php echo $form->error($model,'CiudadId'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'Direccion'); ?>
		<?php echo $form->textField($model, 'Direccion', array('maxlength' => 255)); ?>
		<?php echo $form->error($model,'Direccion'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'TEParticular'); ?>
		<?php echo $form->textField($model, 'TEParticular', array('maxlength' => 30)); ?>
		<?php echo $form->error($model,'TEParticular'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'TEMovil'); ?>
		<?php echo $form->textField($model, 'TEMovil', array('maxlength' => 30)); ?>
		<?php echo $form->error($model,'TEMovil'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'Email'); ?>
		<?php echo $form->textField($model, 'Email', array('maxlength' => 120)); ?>
		<?php echo $form->error($model,'Email'); ?>
		</div><!-- row -->
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->